package view;

import java.awt.GridLayout;
import javax.swing.JLabel;
import javax.swing.JPanel;
import model.Entity;

@SuppressWarnings("serial")
class StatsViewer extends JPanel
{
	JLabel lives;
	JLabel strength;
	JLabel agility;
	JLabel intellect;
	JLabel hardiness;
	JLabel experience;
	JLabel movement;
	JLabel level;
	JLabel life;
	JLabel mana;
	JLabel offensiveRating;
	JLabel defensiveRating;
	JLabel armorRating;
	
	public StatsViewer(Entity e)
	{
		setLayout(new GridLayout(13,2));
		add(new JLabel("Lives Left:"));
		add(lives = new JLabel(Integer.toString(e.getLives())));
		add(new JLabel("Strength:"));
		add(strength = new JLabel(Integer.toString(e.getStrength())));
		add(new JLabel("Agility:"));
		add(agility = new JLabel(Integer.toString(e.getAgility())));
		add(new JLabel("Intellect:"));
		add(intellect = new JLabel(Integer.toString(e.getIntellect())));
		add(new JLabel("Hardiness:"));
		add(hardiness = new JLabel(Integer.toString(e.getHardiness())));
		add(new JLabel("Experience:"));
		add(experience = new JLabel(Integer.toString(e.getExperience())));
		add(new JLabel("Movement:"));
		add(movement = new JLabel(Integer.toString(e.getSpeed())));
		add(new JLabel("Level:"));
		add(level = new JLabel());
		add(new JLabel("Life:"));
		add(life = new JLabel());
		add(new JLabel("Mana:"));
		add(mana = new JLabel());
		add(new JLabel("Offensive Rating: "));
		add(offensiveRating = new JLabel());
		add(new JLabel("Defensive Rating:"));
		add(defensiveRating = new JLabel());
		add(new JLabel("Armor Rating:"));
		add(armorRating = new JLabel());
	}
	
	public void update(Entity e)
	{
		
	}
}